<template>
  <div>
    <a-form :labelCol="{ span: 6 }" :wrapperCol="{ span: 18 }">
      <a-form-item>
        <template slot="label">
          <ZgCheckbox v-model="isUseCk">字典状态</ZgCheckbox>
        </template>
        <ZgSwitch :width="120" v-model="isUse" :text="['启用','禁用']"></ZgSwitch>
      </a-form-item>
    </a-form>
  </div>
</template>
<script>
export default {
  props: {
    ids: {
      type: Array,
      default: () => {
        return []
      }
    }
  },
  data () {
    return {
      isUseCk: false,
      isUse: false
    }
  },
  methods: {
    save () {
      if (this.isUseCk === false) {
        return this.$result.error('请选择要设置的属性')
      }
      return this.$result.ok({
        ids: this.ids,
        isUseCk: this.isUseCk,
        isUse: this.isUse
      })
    }
  }
}
</script>

<style lang="scss" scoped>
</style>
